<!-- Banner -->
<%@ page language="java" contentType="text/html; charset=utf-8"
		 pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<link rel="stylesheet" type="text/css"
	  href="${pageContext.request.contextPath}/resources/css/styleSheet.css">
<div class="title fixed-top form-inline" style="display: flex;" >
	<img src="${pageContext.request.contextPath}/resources/images/logo.gif" alt="logo" style="height: 100%; max-width: 200px; min-width: 100px;">
	<c:set var = "employee" scope="session" value ="${sessionScope.employee}"/>

<!--每次引入该页面都询问session才行-->
	<div style="color: white;padding-bottom:10px;">
	<div class="col-1">
	</div>
	<c:if test="${empty employee}">
		<h1 class="font-weight-bold" style="color:white;">您尚未登录 </h1>
		<a href="${pageContext.request.contextPath}/employee/login" style="color: white;" >普通员工登录</a>&nbsp;|&nbsp;<a href="${pageContext.request.contextPath}/admin/login" style="color: white;" >管理员登录</a>
	</c:if>
	<c:if test="${not empty employee}">
	<h1 class="font-weight-bold" style="color:white;">Welcome!&nbsp;${employee.username}&nbsp;
	</h1>
		<a href="${pageContext.request.contextPath}/employee/logout?action=get" style="color: white;">[退出]</a>
	</c:if>
	</div>
</div>
